<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;

use Illuminate\Database\Eloquent\Model;

class CourseAfterSaleMessage extends Model
{
	use HasDateTimeFormatter;
    protected $table = 'course_after_sale_messages';

    protected $fillable = [
        'course_order_id',
        'user_id',
        'content',
    ];

    public function user()
    {
        return $this->belongsTo(User::class,'user_id');
    }


    public function order()
    {
        return $this->belongsTo(CourseOrder::class,'course_order_id');
    }

}
